package game;

import static org.junit.Assert.*;

import org.junit.*;


public class Game_test {

	Deck s = null;
	Timer t = null;
	BadugiServer b = null;
	String msg = null;
	
	@Before
	public void inicjuj(){
		s = new Deck();
	}
	@Test(expected = BadugiException.class)
	public void TestujWyjatek() throws BadugiException{
			String c = s.CardName(54);		
	}
	@Test(expected = BadugiException.class)
	public void timertest() throws BadugiException{
		t = new Timer(10001);
	}
	@Test
	public void czywidac() throws BadugiException{
			b = new BadugiServer();
			String msg = "Estart1234";
			String str = b.gamelogic(0,msg);
			assertEquals(str, "MWrong blinds");
		}

}
